package com.example.forum_system.service;

import com.example.forum_system.model.Article;
import com.example.forum_system.model.VO.ArticleVO;

import java.util.List;

public interface IArticleService {
    int insertArticle(Article article);
    List<ArticleVO> selectArticleUser(long userId);
    int selectArticleCountBoard(long userId);
    List<ArticleVO> selectArticleBoard(long boardId);
    List<ArticleVO> selectAllArticle();
    ArticleVO selectOneArticle(long id);
    int deleteArticle(long id);
    int updateArticle(Article article);
    int addLike(long id);
    int addVisit(long id);
}
